<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>工作坊签到</title>
    <style>
        :root {
            --primary-color: #2196F3;
            --bg-color: #f5faff;
        }

        body {
            font-family: 'Segoe UI', sans-serif;
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background-color: var(--bg-color);
        }

        .container {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.1);
        }

        h1 {
            color: var(--primary-color);
            text-align: center;
            margin-bottom: 30px;
            font-size: 1.5em;
            line-height: 1.4;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            color: #666;
        }

        input, select {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
        }

        button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            cursor: pointer;
            width: 100%;
            font-size: 16px;
            transition: background 0.3s;
        }

        button:hover {
            background: #1976D2;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>福田区小学数学AI赋能教育<br>研讨工作坊2.0签到系统</h1>
        
        <form id="signForm">
            <div class="form-group">
                <label>参与身份</label>
                <select id="role" required>
                    <option value="">请选择您的身份</option>
                    <option value="AI">AI赋能团队成员</option>
                    <option value="part">兼职教研员</option>
                </select>
            </div>
            
            <div class="form-group">
                <label>所属学校</label>
                <input type="text" id="school" 
                       placeholder="请输入完整学校名称" required>
            </div>
            
            <div class="form-group">
                <label>您的姓名</label>
                <input type="text" id="name" 
                       placeholder="请输入真实姓名" required>
            </div>

            <button type="submit">提交签到</button>
        </form>
    </div>

    <script>
        document.getElementById('signForm').addEventListener('submit', (e) => {
            e.preventDefault();
            
            const attendee = {
                role: document.getElementById('role').value,
                school: document.getElementById('school').value.trim(),
                name: document.getElementById('name').value.trim(),
                timestamp: new Date().toISOString()
            };

            // 数据存储
            let attendees = JSON.parse(localStorage.getItem('attendees')) || [];
            attendees.push(attendee);
            localStorage.setItem('attendees', JSON.stringify(attendees));
            
            alert('签到成功！');
            e.target.reset();
        });
    </script>
</body>
</html>